<template>
	<view class="uni-title-bar uni-bg-color" :style="{'height': Height, 'font-size': fontSize}"  >
		<view>{{title}}</view>
		<slot></slot>
	</view>
</template>

<script>
	export default {
		name: 'Title',
		title: '单元格标题',
		props: {
			title: {
				type: String,
				default: ''
			},
			height: {
				type: Number,
				default: 100
			},
			size: {
				type: Number,
				default: 32
			}
		},
		computed: {
			Height() {
				return `${this.height}rpx`
			},
			fontSize() {
				return `${this.size}rpx`
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang='scss' scoped>
	.uni-title-bar{
		width: 100%;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
	}
</style>
